package com.itheima.springdemo2;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;

@Data
//@Component
//@ComponentScan("com.itheima.springdemo2")
@Configuration
@ConfigurationProperties(prefix = "boot")
@PropertySource("classpath:application.yml")
public class BootDemo {
    private String name;
}
